Approving field is empty

a2gupta
Giga Contributor

Hi,

 

Capture1.PNG                                                                                                                                            

I noticed today that in some of the approval records generated, the Approving field is coming empty in some cases,which is stopping the approvers from getting info by clicking the approving field. I also noticed that for all the records in which Approving field is empty,the Source Table field is also coming empty. What could be the reason for this? and possible ways to counter this problem?

Thanks,

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

Adding a custom business rule such as this will solve the issue (Sample from my instance)



if(current.sysapproval.sys_class_name=='sc_req_item')


  {


  current.document_id=current.getValue('sysapproval');


  current.source_table=current.sysapproval.sys_class_name;


}


View solution in original post

10 REPLIES 10

Kalaiarasan Pus
Giga Sage

Adding a custom business rule such as this will solve the issue (Sample from my instance)



if(current.sysapproval.sys_class_name=='sc_req_item')


  {


  current.document_id=current.getValue('sysapproval');


  current.source_table=current.sysapproval.sys_class_name;


}


Hi Kalai,



Will try this. This is a before Insert business rule??


a2gupta
Giga Contributor

And is any condition required?


Yes - Before insert



Condition can be this



current.document_id=='' && current.source_table=='' && current.sysapproval!=''


Hi kalai,



Thanks.It worked. created a request and now the Approving fields are getting filled and also the source table fields. One more question, What about the previous records that are still empty? is there any way to populate them as well?



Thanks,