cancel
Showing results for 
Search instead for 
Did you mean: 

How to bypass authorization check when search workflows using method cl_crm_bol_dquery_service=>get_query_result ?

Former Member
0 Kudos

Hi experts,

as we know,normally, when we call method cl_crm_bol_dquery_service=>get_query_result to seach workflows, there should be an authorization check with defalt settings.My requirement is, can I bypass this authorization check? How to do this? I don't find a parameter in method get_query_result.

Can anybody help?

Thank you.

Jerry.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member210661
Active Contributor
0 Kudos

Hi Jerry Cui,

have you check the class cl_crm_aui_query_service there is a method GET_QUERY_RESULT in that actual filtering logic is getting triggered there you can observe the method

CALL METHOD get_wf_wi_query_result

     EXPORTING

       ir_exit       = lr_exit

       it_item_types = lt_item_types " this table type will differentiated weather that is workflow task or oneoreder task..

     IMPORTING

       et_result     = lt_items

       et_parameters = l_paramwf_witab.

just debug this method and i will give one badi this will trigger whenever you search the inbox item..

CRM_IC_INBOX_BADI put a break point in before search method there is a parameter I_INBOX_MAP_ITEM_TYPE this will give the type of item it is..

Thanks & Regards,

Srinivas.