• Web API to get document by document ID

    Hi, I need to create a web api which would take document ID as input and should give the document. I tried using document download function in the web api and the response I am getting is as follows: [@attributes=[@anyAttribute=[_documentDownloadLink…
  • RE: Repeat Function

    @brida: Can you please try with below code snippet: repeat( 3, tostring( a!forEach( items: { "Apple", "Orange", "Mango" }, expression: fv!item ) ) )
  • RE: Repeat Function

    Hi Brinda, good to know that you got your ans. FYI below is also a way to do it without using foreach. load( local!array: joinarray( { "Apple", "Orange", "Mango" }, "," ), split( apply( fn!repeat( 3, _ ), { local!array…
  • RE: Repeat Function

    Hi Brinda, Please find the attached code.You can also try in this way: load( local!a: { "Apple", "Orange", "Mango" }, a!flatten( a!forEach( items: enumerate(3), expression: local!a ) ) ) Thanks, ravalik
  • RE: Repeat Function

    Hi Brinda, Try the below: a!flatten( a!forEach( items: enumerate(3), expression: { "Apple", "Orange", "Mango" } ) )
  • RE: Address Validation Integration

    Hi Brinda, I tried some thing like this, Create a CDT of type Address with your required address fields like address1, address2,city,state,zip code etc. Create one more CDT of type AddressValidateRequest with the following fields 1.Revision 2.AddressID…
  • RE: How to convert dictionary to CDT?

    Similar to what was described above, doing this should work: = with( local!result: rule!MY_INTEGRATION_RULE(), local!json: a!fromJson(local!result.result.body), local!lat: local!json.results.geometry.location.lat, local!lng: local!json.results…
  • RE: How to convert dictionary to CDT?

    It would first be most efficient to run the fromJson once for your entire JSON string instead of calling it multiple times.. Like this load( local!googleMapsValue: a!fromJson( {your JSON string} ), ................ Then declare a local variable of the…
  • RE: User filter in Record from a different table

    Since you have used Students as the entity, even with the FK reference to "Student Skills", Appian cannot filter based on your other entity: "Student Skills". The best way to achieve this functionality to filter on Student Skills would be to create a…
  • RE: User filter in Record from a different table

    Agree, view is a standard choice. In similar case if the filter data is not in the table you can use expression user filter. docs.appian.com/.../Expression-Based_User_Filters.html
  • RE: User filter in Record from a different table

    I agree with alexp750 view will be the best choice, however you can have one more possibility, if you have related student and skill CDT using nested CDT then you can create a queryEntity or queryRule on the parent CDT which will retrieve all the rows…