Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Search Option in My to Dos Widget

Monika Sudhaka1
Tera Contributor

Hi Everyone,

 

In My To-do Widget, I wanted to add a Search filter. Is there any OOB way to achieve it?

11 REPLIES 11

care to share?

I have attached the xml of modification on My approval page to search approval records based on ticket number. 

I have created a custom field Record Number and custom business rule on approvals to update data in record Number field

 

Business rule will execute before insert of approvals records and script content is:

 

if (current.sysapproval != '')
        current.u_record_number = current.sysapproval.number;

    // get Related Record "Number" When approval is created for non task related record

    else {
        var record = new GlideRecord(current.source_table);
        record.get(current.document_id);
        current.u_record_number = record.number;
    }