The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Flow Designer action "Record Producer". Store record producer information.

Flavio4
Kilo Sage

Hello,

I'm trying to create Incident records in Flow Designer with the action Record Producer*.
The execution seems correct but the Record Producer column of the Incident table is not filled automatically. With an additional Update Record action, it works.

Is it normal?
I checked on a PDI and I understand that the column Record Producer might be a customisation of our.
Thank you for a confirmation.

If indee it is a customisation, how is stored out of the box the information that a (incident) record is created through which record producer?

Thanks
Flavio

* We use a rather "legacy" instance, UI 16, on Xanadu.

12 REPLIES 12

@Flavio4 

In the Step where you are updating INC you can set that Custom Column with the Record Producer from earlier Step

OR

you can use after insert BR on incident table and use this logic to set that field

(function executeRule(current, previous /*null when async*/ ) {

    // Add your code here
    var rec = new GlideRecord('sc_item_produced_record');
    rec.addQuery('task', current.sys_id);
    rec.query();
    if (rec.next()) {
        current.u_record_producer = rec.producer; // use this if your field is reference to Record producer table
        current.u_record_producer = rec.producer.getDisplayValue(); // use this if your field is string type
        current.setWorkflow(false);
        current.update();
    }

})(current, previous);

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Flavio4 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Nishant8
Giga Sage

Hello @Flavio4, Following table holds the relationship: sc_item_produced_record.

you can type sc_item_produced_record.list in the application navigator and find the information. details in the table are self explanatory.

 

Regards,

Nishant

Nawal Singh
Mega Guru

Hi @Flavio4 ,

 

I have just checked your requirement in my PDI. Please review the below screenshot

NawalSingh_0-1758717052393.png

what i have did, after generating the record from record producer i'm updating that record- fields with the record producer name.

 and it will updating like this-

NawalSingh_1-1758717181395.png

 

if its help you to fix your issue please accept as solution and mark as helpful

 

Thank you

Nawal singh

Ankur Bawiskar
Tera Patron
Tera Patron

@Flavio4 

OOTB there is no field available on incident called "Record Producer".

This field must be a customization done in your instance and it seems the developer who worked on it forgot to populate that when INC is created using "Record Producer" flow action.

"Record Producer" is an OOTB flow action.

Record Producer action 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader