Mapping a field on a record producer

Richard T
Kilo Guru

Hi

I am creating a record producer which will be available on our Customer service Manager Portal.

The record produce is mapping to the sn_customerservice_case table and this particular record producer needs to always create a record with a category of Issue.

However, not matter what I set the field on the record producer to when it creates the case category always defaults to Question.

I presume it should have the category ion the record producer set to single line text with a default value of Issue?

Thanks for any assistance.

 

 

1 ACCEPTED SOLUTION

scott barnard1
Kilo Sage

Hi

you can either have a variable on the record producer that you map to field and default to Issue and don't show it.

Or in the script section of the record producer use:

current.category = 'Issue'; (note you need the value of Issue here and not the label

 

regards

View solution in original post

4 REPLIES 4

scott barnard1
Kilo Sage

Hi

you can either have a variable on the record producer that you map to field and default to Issue and don't show it.

Or in the script section of the record producer use:

current.category = 'Issue'; (note you need the value of Issue here and not the label

 

regards

Great, thanks Scott.

Richard T
Kilo Guru

Hi Scott

 

That's pretty much what I thought and had already set up.

 

The field is called Category (single line text) and maps to the Category field on the table with a default value of Issue.

 

I have it visible on the record producer for testing purposes and it shows as Issue fine, just does not update the case table.

 

Anything I may have missed?

 

Thanks for the response, appreciated.

The one you set up is a single line text and you are mapping it to a choice ? They may not match.

Try the script it's simpler

current.category = 'Issue'; 

Don't forget you need the value of the Issue in the choice list for category. Right click show choice list and copy the value.

Either way you need to get the value and not the label

 

Regards