In TMF642 POST, PATCH, and CLEAR responses, we have to assign 32-digit pure integer to id attribute
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2025 11:25 PM
Hi All,
We have a requirement to assign a 32-digit pure integer to the id attribute in TMF642 POST, PATCH, and CLEAR responses. However, when we attempt to assign a pure 32-digit integer, it automatically converts to scientific notation (exponential form).
Has anyone encountered this issue and successfully resolved it? If you have worked on a similar requirement, please let us know.
Thanks & regards,
Anil Pathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2025 11:27 PM
Sorry didn't get your complete requirement
are you trying to integrate and sending that attribute?
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-28-2025 11:44 PM
@Ankur Bawiskar
Thanks for your quick response.
Yes, we have integrated ServiceNow with an external system using the TMF642 plugin connector. When sending a response back to the external system, we need to populate a pure 32-digit integer in the "id" attribute of the response payload.
However, ServiceNow does not support this and automatically converts the integer into scientific notation (exponential format).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2025 11:48 PM
since you want 32 digit unique integer, what script are you using?
what is the value you are generating and what is getting converted when you post the API with request?
share some details
I could see in screenshot it's some random sysId and not just simple integer which is of 32 lenght
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-29-2025 01:17 AM
@Ankur Bawiskar
I am using below code to generate 32 digit integer.
Expected value in id attribute: