Add a non Task record to My Request widget

Dazler
Mega Sage

Hi,

 

I know that using the My Request Filter, I can add additional task to the My Request widget.  My question is what if I have a record that is not extended to the task table.  How can I get that added to the My Request widget?

 

I have a developer on my team, that is building out an application and I recommended that each of the tables that he creates be extended to the task table, but he had other ideas.  So when it came time to update the My Request Filter, I couldn't see the table of the record I need to show.

 

So now I may have to hard code this new table into a clone of the My Request widget and I need to guidance on how to go about adding in this to the My Request widget.

 

Any ideas on how to achieve this?

1 REPLY 1

Astrid Sapphire
Tera Expert

Hi there,

To do that, you'll need to include a separate GlideRecordSecure (or GlideRecord, but recommend GRS) check for the records in question. If you want to abstract the filter like request_filter does, you'll need to find a place to define that. You'll want to put the resulting object into the req_list array and want to be mindful of the existing data format.

 

However, I'd suggest if possible that any task-style records be extended from task - I understand this means re-work, but in the long run you'll be better off and provide better feature parity. Maintaining this clone may seem simple enough now, but the rework will likely mean lower maintenance and specific testing required in the long run.

Kind regards,

Astrid Sapphire