Hello
Iâm trying to create workflow which will create a new record in my custom_module with my custom ID(not auto generated one)
So I created workflow and select action ânew recordâ next I added field âIDâ and give test value like âwew232-ewe32-rfgfht2-32323â
But when I tested it doesnât create a new record in needed module. Worflow shown me that something was complete but I canât find a new record anywhere - in crm module and database too
Also if I just delete mapping âIDâ from my workflow that it easyli creating a new record with auto generated ID
workflow was complete
in the screenshot as I understood correctly âIDâ means what I need?
unfortunately, it doesnât work or there is another way to set custom ID?
Try first with no custom ID, let the system do the service. Let us know. When the record is indeed created, then you try to define the custom ID value.
Please, note the ID is a unique value and system will probably fail if this ID had been used already somewhere.
Try to change the record after creation with a fĂłrmula to that field.
BTW, why do you want a custom ID. Thatâs an internal field CRM uses to keep everything in sync. Here we need a custom opp ID, so we created a field for that wih a workflow doing a calculated fieldâŚ
ok, then what for we can use this ID field in worlfow?
I need to set custom ID for easily detected created record in the future, for example for another workflow
I doubt that you can play with ID field from the Workflow module. Itâs tricky, because itâs the key field, and because it is used in all relationship tables, so you canât just change it, you have to keep things coherent.
So either use a different field for your purposes like myID, or if you really want to use the ID field, go for a logic hook where you have more control through code.
In this case, create a field with that purpose. If you want to know if a new record is new or no processed, for instance, then you should create a custom field for that, like ânew_recordâ and another âprocessedâ, so another workflow can locate new but unprocessed record, then process them, then mark them as old or processed.
I would not mess with the internal controls of SuiteCRM