Just figured this out and thought I would share. It is related to this post.
The REST calls need the document GUID in ECM and you can get it from XFileRef.FileName. Just extract the substring(0,36) from the field and you have your ECM Document GUID.
Can you do that in a workflow? Cause I think you can default a workflow for a doc type so that when it’s uploaded to ECM it goes into a workflow? It’s been a minute.
I ask because I see you saying you want to call ECM API, but I’m trying to conceptualize needing to do that and why and what the benefits are in your case so I can learn and be prepared for the day I might need to do that.
Yes you can. You can also do it in an updatable baq. I attach our tariff invoices out of a folder just like a workflow to all of the PartLots and the PO for the receipt.
For me even with the workflow license I only have 6 seats and dashboard users are not ECM users.
Just stumbled across this one, but you can also get the DocumentId from a REST call to ECM using metadata search criteria.
Once you have an Authtoken, you can call …/AstriaV2/Search.svc/restssl/Search
and pass in “TextCriteria”: “solr:InvoiceNum: XXX123” or whatever you want to search on.
It’ll give you back a DocumentId as well as some other info like “VersionId” and “ModifiedTicks” which is important if you want to later update any of the metadata.