- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 03:17 AM
Hi,
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,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 03:45 AM
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;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 03:45 AM
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;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 03:58 AM
Hi Kalai,
Will try this. This is a before Insert business rule??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 03:59 AM
And is any condition required?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 04:01 AM
Yes - Before insert
Condition can be this
current.document_id=='' && current.source_table=='' && current.sysapproval!=''
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 04:14 AM
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,