Edit button for custom relationship

Thang Do3
Tera Contributor

Hi Community,

I have 2 tables.

1. table A

2. table B (with a Document ID field and Document Table field)

I have custom relationship on table A which only show record of table B that have "Document Table = table A"

Is there a way to add Edit button to link multiple B records to an A record ?

 

Thank you in advanced

3 REPLIES 3

Ahmmed Ali
Mega Sage

Hello @Thang Do3 

 

The custom relationships cannot have edit button unless you configure button and popup all custom one which is too complex. For edit button, you will need to have M2M table configured between both tables (example group membership which is M2M between user and group).

below thread for reference:  

https://www.servicenow.com/community/itsm-forum/how-to-add-edit-button-in-a-customized-relationship/... 

 

Thank you,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Thank @Ahmmed Ali , the requirement I got is O2M relationship using DocumentID. Thank for the reference

Hello @Thang Do3 

 

If you need O2M relationship (like parent and child incidents), instead of having document ID type field referring to Table A, you can create reference field which refers to table A. This will give OOTB relationship (No need to create new relationship) and will have edit button also.

Any particular reason you are having document ID type field?

 

Thank you,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali