Hi all,
how to configure related action in an interface?
Thanks,
Discussion posts and replies are publicly visible
H muralid1772 Related actions you can go through this link to create related actions
Hi Abhishek Karumuru actually my question is I need to perform related action in interface instead of running it in the record.
Could please elaborate your requirement
You can make use of the a!recordActionField() in the interface. Below is the reference documentation.
Record Action Component
Hi Konduru Chaitanya ,
I referencing from that a!recordActionFiled but there rv!identifier is showing as Improperly scoped variable and when i am trying with another method I am getting this type of error:
An Error Has Occurred An error occurred while applying the context for the WLA Customer related action [identifier=319]. Details: The record data does not exist, has been deleted, or you do not have sufficient privileges to access it
HiAbhishek Karumuru , I need to trigger related action from interface instead of triggering it in record.
Where is your data coming from? rv!identifier does not work in interface. If you have a list of items like in a grid use fv!identifier. If you have the data in a local variable use local!variableName[recordType!recordName.fields.fieldName] her it would be your identifier. please try this and let me know.
muralid1772 said:instead of triggering it in record
It's still pretty unclear what you mean by this. AFAIK you can use a Record Action field wherever you like and pass in whatever data you want - of course the action itself must be sourced from a configured record action on a specific record type.
(In case you really just want to launch an arbitrary process model, you can instead look into using a!startProcessLink(), which can reference any process model and pass in any arbitrary data. Unfortunately there is not an option to open this in a new tab and/or a pop-up window, no matter how much or how often i've begged them to add such feature-completeness.)
Konduru Chaitanya ,
it didn't worked, here is my code:
a!localVariables( local!data: rule!WLA_GetCustomerData(id: ri!action), { a!cardLayout( contents: { a!columnsLayout( columns: { a!columnLayout( contents: { a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextItem( text: "Related action to update data", color: "POSITIVE", size: "MEDIUM_PLUS", style: "STRONG" ) } ) } ), a!columnLayout(contents: {}), a!columnLayout( contents: { a!recordActionField( actions: a!recordActionItem( action: 'recordType!{21f5a448-961d-4423-95de-6fdf7893f7ae}WLA Customer.actions.{00525d33-36c6-4753-b7dc-0c1757587a29}editCustomerData', identifier: local!data['recordType!{21f5a448-961d-4423-95de-6fdf7893f7ae}WLA Customer.fields.{35c95d92-920a-4473-a4d1-a47cd0c59d55}id'] ), style: "TOOLBAR", display: "LABEL_AND_ICON" ) } ) } ) }, height: "AUTO", style: "TRANSPARENT", marginBelow: "STANDARD" ) })
I am facing these error:
Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!recordActionField [line 26]: Invalid index type: Record field uuid: 35c95d92-920a-4473-a4d1-a47cd0c59d55 Record type uuid: 21f5a448-961d-4423-95de-6fdf7893f7ae Relationship path: null
muralid1772 Can you check data for local!data is coming properly?It should be record type of WLA Customer.Share that local!data if possible.
Shubham Aware ,
{{email: "vyshu207@gmail.com", age: 23, phoneNumber: "8972565762", name: "Vyshu", id: 1}}.
Actually data is coming properly from expression rule to local variables.