How to create a record from UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 12:19 AM
Hi All,
Some one please help me how to do this.
I have "Create Corporate" button in Incident Form when I click on that button it has to redirect and Open New corporate form to fill all the details and to submit. after submitted corporate form , Again it has to redirect to incident record and show that create "corporate" record number in Incident form of Corporate reference field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 08:08 AM
Hi ,
I have "Submit" button only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 10:12 AM
Ok, here the issue is once the corporate form loads, the UI action from Incident table's job is done.
After submit, how and where it will redirect has to be defined in the 'submit' UI action. If Incident is not the only source of the Corporate record creation, then you cannot define a general redirection rule on the 'Submit' button.
You can use the action.setReturnURL(current) method similar to the Create Normal Change UI Action in the Create Corporate button, but if you have multiple tabs open, it might redirect to the previous page (as it happens so often).
You can mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!
Best Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2022 09:43 AM - edited 11-24-2022 09:45 AM
Hi ,
Thanks for your inputs
I'm 100% sure that 3months back I have seen one ServiceNow KB article , which is having details information about this Redirection process " Like when we click on UI action it will redirect to target table and opens NEW form for filling & after submit it will comes back to current record "
I forgot to save that KB article Link.