-
Recently active
Same as subect
Hello community, I wonder if it is possible to check with in a if condition if a passed value of any type is a CDT.I want to make a generic expression rule to convert a body from JSON to CDT with two rule inputs.1 body of type text.2 any type, but only CDT's so no integer, string etc. So I want the to JSON function only to execute when the ruleinput is a CDT, if not I want to return a custom error message text string.Are the CDT in a specific reserved numeric range so I can use that, or is there another approach? Kind Regard, Erik
a!queryEntity( entity: cons!CH_ENTITY_Clients, query: a!query( filter: a!queryFilter( field: "cid", operator: "=", value: ri!rid, ), pagingInfo: a!pagingInfo( startIndex: "1", batchSize: "1" ) )).data
Hello, after Appian upgrade to version 20.4, I have a problem with confirming Save & Close button in Expression EditorClose and Save & Close buttons are now up and when I try to click on Save & Close button it's like I'm trying to edit that button.I can't confirm it. Any suggestions? How to solve that problem?Thanks, BR
Hi All, Could u pls help me for my below questions What are the steps to follow the Appian to External System?
I have one editable grid in which one priority field is there: a!integerField( label: "Priority", labelPosition: "ABOVE", value: if(not(isnull(fv!item.priority)),int(fv!item.priority)-rule!CRP_CheckPriority(fv!item.priority,fv!item.contentdomain),fv!item.priority), /*saveInto: a!save(fv!item.priority,if(rule!CRP_CheckPriority(fv!item.priority,fv!item.contentdomain)>0,a!save(save!value,int(fv!item.priority)-rule!CRP_CheckPriority(fv!item.priority,fv!item.contentdomain)),save!value)), */ saveInto: {a!save(fv!item.priority,save!value) /*if(rule!CRP_CheckPriority(fv!item.priority,fv!item.contentdomain)>0,a!save(fv!item.priority,int(fv!item.priority)-rule!CRP_CheckPriority(fv!item.priority,fv!item.contentdomain)),a!save(fv!item.priority,save!value))*/ }, refreshAfter: "UNFOCUS", readOnly: if(local!gridreadonly="Edit",true,false), validations: {if(and(local!gridreadonly="Save",not (isnull(fv!item.priority))),{if(count(rule!CRP_Get
Hi everyone, I need to create two expression rules that shows: 1. The information of all unfinished instances of the processes (what is seen in monitoring as not completed) in a range of dates. 2. Same, but with finished instances. Both must return a dictionary list with the basic information of the process: name, who started it and start date. Can you help me? Thank you!!
I was going through someone else's code at my company and found a puzzling thing. There was a parent expression rule calling a child expression rule. The child expression rule referenced a rule input that it did not have defined. The parent rule did have that rule input defined, and the child rule was able to access the rule input defined only in the parent. I want to make it clear that I believe the child rule *should* have had a rule input defined, and that the input should have been explicitly passed by the parent rule. The situation I ran into is not something I would personally rely on or a best practice I would recommend. Is this behavior intentional? Just curious. Below is a simple example: The parent rule has one rule input of a CDT "Widget" which has field1, field2, field3. ri!widget of type Widget is defined on expression rule "parentRule". contents of parentRule rule!childRule( ) childRule has *no* rule inputs
Case: I have Process model which has two task assignment nodes. I have a database field called Status--(Dropdown Options: Analysis, Approver, Complete) When the task is added by the admin then Status field should be defaulted to "Analysis" --> Now the task goes to Analyst (when Analyst Submits the task the field should changes to "Approver"--> Lastly, the task goes to Approver (when approver completes the task then the Status field should change to "Complete" How can I achieve this?
Hello community members, I am working on an assignment in a Appian learning path: Skills Practice Solution: Appian as a Service.A part of the assignment is calling a report from the webapi. code: a!localVariables(local!query: a!queryProcessAnalytics( report: cons!COLOUR_REPORT, contextProcessModels: cons!COLOUR_PROCESS_MODEL),a!toJson(local!query) a!toJson(local!query) is used in the body. But I get error Converting PortalReportDataSubset to JSON is not supported. It works fine with local!query.data Has this something to do with the Appian version I am using (19.4) because I followed the directions in the assignment. Kind Regards, Erik
Here is my code. I have one editable grid in which one priority field is there: a!integerField(label: "Priority",labelPosition: "ABOVE",value: if(not(isnull(fv!item.priority)),int(fv!item.priority)-rule!CRP_CheckPriority(fv!item.priority,fv!item.contentdomain),fv!item.priority),/*saveInto: a!save(fv!item.priority,if(rule!CRP_CheckPriority(fv!item.priority,fv!item.contentdomain)>0,a!save(save!value,int(fv!item.priority)-rule!CRP_CheckPriority(fv!item.priority,fv!item.contentdomain)),save!value)), */saveInto: {a!save(fv!item.priority,save!value)/*if(rule!CRP_CheckPriority(fv!item.priority,fv!item.contentdomain)>0,a!save(fv!item.priority,int(fv!item.priority)-rule!CRP_CheckPriority(fv!item.priority,fv!item.contentdomain)),a!save(fv!item.priority,save!value))*/},refreshAfter: "UNFOCUS",readOnly: if(local!gridreadonly="Edit",true,false),validations: {if(and(local!gridreadonly="Save",not (isnull(fv!item.priority))),{if(count(rule!CRP_Ge
i written code : with( local!prioritylist:{1,2,3,4,5,6,7,8,9,10}, local!missinglist{}:{}, local!newmissing, local!count:0,local!temp: a!forEach( items:local!prioritylist, expression: if(fv!item <ri!priority,if(rule!CRP_Checkdepartmentwisepriority(fv!item,ri!department)=0,append(local!missinglist{},fv!item),local!missinglist{}),local!missinglist{}), local!newmissing:if(count(local!missinglist{})>0,count(local!missinglist{}),local!newmissing) ), local!temp ) i got the output like this: List of Variant - 10 items List of Variant - 0 items List of Variant - 0 items List of Number (Integer) - 1 item 3(Number (Integer)) List of Variant - 0 items List of Variant - 0 items List of Variant - 0 items List of Variant - 0 items List of Variant - 0 items List of Variant - 0 items List of Variant - 0 items Here i want sum of count of each list of this list . Answer should be 1 So, How to add the count of each list in one variable??
I have a CDT (say CDTA) which contains a field for doc id that represents document in appian. CDTB would contain the bad doc ids doesn't exist in appian anymore that i need to delete using delete datastore smartsvc CDTC would contain the ones with doc ids that exist that i need to update using write to datastore smart svc in simple terms, CDTC = CDTA (all records) - CDTB (bad records) How can that be accomplished without having to loop twice ? I am using following to filter out the bad records (CDTB) a!localvariables( local!data : ri!docsdata, local!docstodelete: a!foreach( items: local!data, expression : if(isobjectexists("Document", fv!item.Doc_id), fv!item, {} ), local!docstodelete.data ) ) Then i tried using difference(CDTA,CDTB) but that doesn't work .. ;-(
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.