- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 04:32 AM
Hi All,
I have a requirement to add Approve/ Reject Button on the change form. I tried the below script but it is make all the approver no longer required including who approves it. And state is not changing.
Thanks,
Sam
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 04:44 AM
Hello @Samiksha2 ,
Please refer the below articles once:
Let me know your views on this and Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Regards,
Aniket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 06:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 11:53 PM
Hello @Samiksha2 ,
Glad to hear that my response helped you, also can you please mark 👍Helpful that would be great.
Thank you, Have a great day and weekend ahead!!
Regards,
Aniket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 04:59 AM
Hi ,
Check the state backend value. May be it is not "approved" rather some digit value like 1,2,3, etc.
Regards,
Shamma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 05:11 AM
Hi @Samiksha2,
Do you have the state choice 'Approved' on the Change Form? If yes, then once confirm the choice value.
If you are trying to set the state of Approval record then you need to glide record the sysapproval_approver table.
You can test the below script to set the state of the Approval record to approved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 05:40 AM
Hi @Samiksha2 ,
I'm in agreement with @Dr Atul G- LNG on this one. Although a client/customer is requesting something, after performing some research and gathering the understanding of the 'why' the OOTB setup doesn't suffice, I would lean toward the side of caution and recommend not customizing the system.