Create Demand From the Record Producer/Service Catalog

thisisauniqueus
Giga Expert

Hi,

I am facing an issue where i am trying to create a demand using the service catalog. For that i have created a record producer which makes an entry in the task table with sys_class_name='dmn_demand' but the issue is Number generated for that demand starts with TASK000 where as if i use the New button on the demand list it generated the number as DMND Please see the screenshot below

find_real_file.png

How can i create a demand from service catalog so that the number, that is generated   starts fromDMND.

Best Regards

1 ACCEPTED SOLUTION

That's why. Set the table name to Demand (dmn_demand) and remove that line from the script. Someone set up your record producer a bit whacky which is why it is getting the number related to TASK.



http://wiki.servicenow.com/index.php?title=Record_Producer


View solution in original post

9 REPLIES 9

Chuck Tomasi
Tera Patron

Hi John,



There are a few things to check:


  • Is there anything related to the number field in the record producer's script field?
  • Do you have any dictionary overrides for dmn_demand on the number field?


http://wiki.servicenow.com/index.php?title=Dictionary_Overrides


http://wiki.servicenow.com/index.php?title=Record_Producer


Hi Chuck Thank you for your time.



I have checked there is no dictionary override of number field for demand table please see the below screenshot


find_real_file.png



also in the script field of the record producer i have only one line that is


find_real_file.png



Please let me know if i am missing something very trivial here



Regards


Interesting, The script shouldn't need to set the sys_class_name if the record producer is already set to create records on the table. Try commenting that line out.


the RP is set to create a task table record not the demand table record. Please refer to the screenshot below


find_real_file.png


Regards