How to raise a Routine change using Standard change templates

srikanthvk
Giga Expert

Hi,

I have been trying to create a Routine change using standard change templates but was unsuccessful in doing so. I have looked at the StdChangeProcessor but couldnt find a way to tweak that.

I have also modified the standard change properties and have excluded the field Type from the from restricted change request values and have added the Type as Routine in my template. Unfortunately even this didn't work.

Can someone help me over here.

Thanks,

Srikanth Varma

1 ACCEPTED SOLUTION

srikanthvk
Giga Expert

Found the answer to this, need to make changes to StdChangeUtils script include.


Override the default change type to 'Routine'.


View solution in original post

14 REPLIES 14

Found the answer.



Needed



DEFAULT_CHG_TYPE: "Standard",



Was trying



DEFAULT_CHG_TYPE: 'Standard',


davem13
Mega Contributor

Hi All



I have a similar requirement, however I have tried changing the default chg type but it does not seem to be working. Once I have this working I want to default type based on category.



If anyone has any ideas why this.DEFAULT_CHG_TYPE = "no_impact"; is not updating the change type.



Thanks


Dave


Hi Dave,



Do you have the No Impact choice added to the type field.



Thanks,


Srikanth Varma


Hi Srikanth



Yes the no_impact is a value.



I have found a way round it in the end, created a small before Insert BR to update the type based on the templates category, it changes to correct no impact Type and starts the correct workflow.



Thanks


Dave


Fernando Dunn
Mega Expert

Here is an update for anyone having issues with this.

As stated in other replies, you can override the functions of StdChangeUtilsSNC using the StdChangeUtils script include. However, when you override DEFAULT_CHG_TYPE, it only applies when you create a NEW proposal. Existing Standard Change Record Producer (std_change_record_producer) records that were previously created through the approval process already have the previous Type in their Script field.