Custom Action Output Not Showing for Approval Record in Flow Designer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Hi everyone,
I’m working on a custom action in Flow Designer in ServiceNow where I’m trying to retrieve the Approver Name and Approval State from an Approval record.
Script used:
(function execute(inputs, outputs)
{
var approvalrecord = inputs.ApprovalRecord;
outputs.ApproverName = approvalrecord.approver.getDisplayValue(); outputs.ApprovalState = approvalrecord.state.getDisplayValue();
})(inputs, outputs);
Issue:
- The script runs without any errors
- Approvals are happening correctly on the Change Request
- But in Execution Details, both ApproverName and ApprovalState outputs are coming empty
Context:
- Input variable ApprovalRecord is mapped in the action
- I’m triggering this from a flow related to Change Request approvals
Question:
Why are the output values not appearing even though the approval exists and the script executes successfully?
Am I accessing the Approval record incorrectly in Flow Designer?
Any suggestions or guidance would be really helpful.
Thanks!
Labels:
- Labels:
-
Flow Designer
0 REPLIES 0
