Generate ADN from rest api initiates workflow

How to generate ADN from initiates workflow with attribute?

Comments

  • appuq
    appuq Member

    I'm not sure if I or anyone in this forum understand what you want…

    Can you use screencaps or some way of explaining try to ask what you want to be accomplished.

    A D N is just an attribute type that generates some numbers, usually those numbers are then put on Documents . Some organizations use regular forms and create "place holders" For e.g in Engineering a batch of numbers is booked ahead of time so companies can upload real documentation/drawings against those numbers

  • Adev2023
    Adev2023 Member

    Hi @appuq .

    I want to start a workflow, I am sending some attributes to it, in the workflow there is a DNA type field in which an identifier is generated that includes some attributes that I sent.

    Example;
    attribute1: AB,
    attribute2: CDE,
    attribute A D N should generate something like this AB-CDE-12345.

  • appuq
    appuq Member

    The generated Number AB-CDE-12345 what is this for the Name of a Document,Name of the Workflow ? I am sure you generated it but you have to use it somewhere correct?

  • Adev2023
    Adev2023 Member

    The generated Number AB-CDE-12345 is for Name of document

  • appuq
    appuq Member

    Where is the document in the WF is the WF generated by clicking on something in the Document Menu or are you showing a WF screen and making the user fill in something to the tune of

    attribute1: AB,
    attribute2: CDE, and then adding the Document and expecting once the WF is started the Document will now called AB-CDE-12345

    This is very easy

    If you have a WF Screen and know how to make a WF requiring those two fields introduce a WR step, so when the WR step fires you have the workid, and subworkid of the WF using which you will be able to get the node of the attachments, your WR has a tag that can be used to generate the number ADN and lastly, not least you can rename the document.

    Secondly, this may also work you just have to put the category values correctly on the document and turn on ADN renaming and ADN code will do the renaming for you.

    Try both options and let the forum know where you falter!

  • Adev2023
    Adev2023 Member

    This process is to do it from the Rest Api workflow.

  • appuq
    appuq Member

    what is preventing you from doing this? REST API WF still has to work in the regular interface IMHO, I will stop the handholding and let you explore it on your side.