Attachment transfer between 2 instances.

RAJU MANGA
Tera Contributor

I am able to successfully transfer the attachment between 2 instances, but my problem is that after opening the attachment from 2nd instance I am seeing the empty content in word, csv and excel files but I am seeing content in text files. Can anyone help with this please?

Here I am attaching each and every detail what I have done in 2 instances:

1)In instance 'A' I wrote this business rule for incident table

RAJUMANGA_0-1685691029660.png

RAJUMANGA_1-1685691089252.png

2)I am sending the attachment information onto a staging table in instance 'B',  and the information look like this

RAJUMANGA_2-1685691269806.png

3)In transform script( in transform map to send the data from staging table to incident table in Instance 'B'), I am decoding the retrieved information of a attachment

RAJUMANGA_3-1685691453351.png

4)But after opening the attachment from Instance'B', I am seeing the empty content for pdf, word and excel files.

RAJUMANGA_4-1685691548894.png

Orginial file:

RAJUMANGA_5-1685691594458.png

Can anyone tell me where I am doing the mistake please?

@Ankur Bawiskar can you look into this please.

Thanks 

Regards

Raju Manga

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@RAJU MANGA 

you want to transfer files between instances right?

if yes then check these links

Unable to send attachment via REST 

Business rule to send attachment to 3rd Party Tool via REST 

Send attachment via rest message 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@RAJU MANGA 

you want to transfer files between instances right?

if yes then check these links

Unable to send attachment via REST 

Business rule to send attachment to 3rd Party Tool via REST 

Send attachment via rest message 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thank you @Ankur Bawiskar , I got the solution.

Regards

Raju manga.