How to create a record from UI action

Supriya25
Tera Guru

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.

 

Supriya25_1-1669105113946.png

 

 

 

 

7 REPLIES 7

Hi ,

 

I have "Submit" button only 

 

Supriya25_0-1669133257002.png

 

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

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.