I created a custum action in flow designer for creating record in expenses tables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2025 09:11 PM
Please correct the following errors before save or publish:
Action Output: Record Sys ID: Empty output value cannot be blank on publish.
Action Output: Expense Number: Empty output value cannot be blank on publish.
Action Output: Status Message: Empty output value cannot be blank on publish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2025 09:39 PM
it would be great if you add images directly in your post
It becomes difficult to go through the attachments 1 by 1
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2025 09:46 PM
Hi @Aman Mishra
It seems you missed to map your Outpu variables with the values.
Click "Exit edit mode" on your Action output and map the values to your output variables from the previous script step.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2025 08:02 PM
this is my script but when we goes to mapping then not showing that outputs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2025 10:15 PM
In your script step, you must have output variables like below. Then you need to map those output variables (from script step) to the Action output variables. PFB.
if (sysId) {
var expense_record = new GlideRecord('x_1027663_expenses_create_new');
expense_record.get(sysId);
outputs.record_sys_id = sysId;
outputs.expense_number = expense_record.getValue('number');
outputs.status_message = "Expense record created successfully.";
} else {
outputs.status_message = "Expense creation failed.";
}