Skip to main content

Hi All,

 

I’m getting an error when trying to create a document using a REST API. I’m passing value as ‘YES’ for CreateFileRef, but it’s giving below error.

 

 

API Documentation
Core Code/ Function

 

POSTMAN Request

Please share if you have any input on this.

 

Thanks & Regards,
Asanka.

This is not an IFS Bug, this was due to a Custom Event we had in our environment. I was able to sort this by debugging through POSTMAN.

To enable debugging you can add ‘?odata-debug=json’ to the end of the url. It will be easy to investigate and solve issues.

 


Hi Asanka

We’ve successfully used this interface to create and subsequently upload documents to IFS using the REST APIs, with CreateFileRef set to “YES” (currently using 23R2 but also worked in 22R2).

Have any documents been created within IFS for the document class you are using?  I’m wondering if it’s something to do with the document class rather than the parameters to the REST API call.

MMck

 

PS Ignore this, my browser just refreshed with your own answer!


Hi ​@MMcK ,

It was due to a Custom Event. Which Blocked creating and attaching new documents

Thanks & Regards,
Asanka.


The sneaky thing with custom events, it seems... 🙂 


Reply