Third Party Application should Hit my API and get the value from my change Request Table

surya76
Tera Contributor

Third party should hit my REST API end point and GET the state field and shortdescription value of my Change request table.

i Know i can do this via Scripted rest API and i achieved it:

find_real_file.png

i can sent the response to my Third Party

find_real_file.png

 

But How can i acive this Via Trans form Maps or Transform scripts:

can it be done through Tranform ?

Because the second use case is Third party should hit my REST API end point and update the state field in my change request table:

so i have created a transform map with change number as coalesce field so they can update my record if change number already present in my change Request table.

find_real_file.png

HERE iam using Different Two methods.

I would be great if i can achieve both by tranform methods. because these two use case are INBOUND REST CALL.

 

Thanks

 

 

 

 

1 ACCEPTED SOLUTION

Hi,

Refer the Highlighted part 3. You can pass the Change Number using sys_parm_query as mentioned

Refer Highlighted part 4, you can set the list of fields to be returned.

Hope this answers your question

Thank you,
Palani

View solution in original post

8 REPLIES 8

Third Party will consume my API and  only send Change Request Number to check present in Change request table/ not

will this work on that?

Hi,

They can do it. They have to just replace the Change number. Already shared the screenshot in another thread. Attaching it here again

find_real_file.png 

Thank you,
Palani

THANKS!

 

Third Party APP will only send Change Request Number as the input PARAMETER.

service now should sent the state and short description field values

 

WILL THIS END POINT WORK ON THAT CASE OR WE NEED USE SCRIPTED REST API AS I USED

IF YOUR SHARED ENDPOINT ITSELF WORKS HOW SHOULD I PRESENT IT TO THE CUSTOMER

 

 

Hi,

Refer the Highlighted part 3. You can pass the Change Number using sys_parm_query as mentioned

Refer Highlighted part 4, you can set the list of fields to be returned.

Hope this answers your question

Thank you,
Palani