Skip to Content
author's profile photo Former Member
Former Member

UploadCollection for attachments on new document, what's the right way?

Hi folks,

I've read already all the recommended articles/blogs here and got the control to work, upload and everything.

However, I'm not sure how should I be linking the uploaded files when creating a new record/document of my app (when I still don't have the keys saved in SAP to simply link attachment to record key1, key2, etc).

Everything works perfectly on edition mode where the document is created already, but what about when the document still doesn't exist and I'm creating it at the same time I'm uploading its attachments?

Right now our temporary solution was returning for each file a unique id from the backend and store on frontend, then we send it along with the new document data to make the link, but I wonder, is that the best way? It looks faulty to me.

Glad to hear some ideas. Thanks!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2016 at 01:00 PM

    Anybody? I've been doing some research to try to find an alternative, what I came up with was creating a long text property that stores all archiving doc ids that are returned from the backend, and then send it with the other fields when creating the records, but not sure that's the ideal solutions.

    Any comments??? It's not possible nobody went thru this before.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Rohit Singh

      Thanks for the reply Rohit.

      Yeah, storing each attachment's doc id would work but the initial one I mentioned is faulty when using unique ID for all attachments because if having concurrency it breaks it, so now I'm just storing the doc ids for every attachment and using separator, but it does look wrong to me.

      Hopefully somebody will join the discussion and shed some light.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.