There is a function getraurlstubbyrecordtype() in 19/.4 to get the url link directly to edit the record but its not working for 21.4. Similar way can we generate the URL in 21.4. Can any one help me with the code how to generate . Thank you .
Discussion posts and replies are publicly visible
ajays0012 said:getraurlstubbyrecordtype()
I'm not familiar with that rule - is this contained in a plug-in?
Can you clarify what you're actually trying to accomplish?
Thank you for reply Mike. Yes its a plug-in. Our goal is to generate the URL for the related action where user should be able to edit directly not clicking on the related action
Thanks for the clarification on the source of the rule. Can you expand on what exactly you mean by "edit directly"? What is the end user intended to be "editing" here?
when the url is given to the end user he should directly be in edit mode meaning he can update the fields
How would they do that without utilizing the Related Action? The user can't edit anything without at least launching a process instance in some way. I'm still not sure what you mean by "directly be in edit mode" - to me that implies they've clicked a related action in some way.
getraurlstubbyrecordtype(
theRecordType:CONS!RECORD TYPE,
pmIdOrUuid :"PM ID or PM UID "
)
This function return a URL used in a!safelink(), Record will be open in Edit Mode in a new tab.
ajays0012 said:Record will be open in Edit Mode
What is "edit mode"? Can I assume you're referring to some particular related action that allows a user to edit certain values within that record item? What exactly is your reasoning for not wanting to use the Related Action / a Record Action pointing to the relevant related action?
Yes and its a Business Request
There were several facets to that, i'm not sure what you're saying "yes" to(?)
Also: have you considered using the Start Process Link component? It can be used to make links in arbitrary interfaces that work similarly to how a Related Action works (but without requiring configuration or invocation of the actual record type, for better or worse).
Can you use a record action component instead of this plug-in? Also is this a plug-in that is on the app market or one that you created yourself?