1. 程式人生 > >SAP CRM my task 6個roundtrip的原理講解

SAP CRM my task 6個roundtrip的原理講解

6組序列的roundtrips:
在這裡插入圖片描述

  1. 取得my task application的navigation target:
    (Request-Line) GET /flp/navigation/semanticObject/Task/action/manageTasks/site/d4bfd59d-32a1-46ce-ba33-f6ccb7e152cc?
    formFactor=desktop&_=1433847650925 HTTP/1.1

  2. 取js file, can be ignored once broswer cache is hit

3.a. 取css file, can be ignored once broswer cache is hit
3.b 取metadata, can be ignored once broswer cache is hit

  1. 拿CSRF token:
    在這裡插入圖片描述

  2. 使用http post批量拿Technical details, UserPriorities and UserStatus.
    (Content)
    –batch_ac0d-3682-7af9
    Content-Type: application/http
    Content-Transfer-Encoding: binary
    GET TechnicalDetails HTTP/1.1
    Accept-Language: en
    Accept: application/json
    MaxDataServiceVersion: 2.0
    DataServiceVersion: 2.0
    –batch_ac0d-3682-7af9
    Content-Type: application/http
    Content-Transfer-Encoding: binary
    GET UserPriorities HTTP/1.1
    Accept-Language: en
    Accept: application/json
    MaxDataServiceVersion: 2.0
    DataServiceVersion: 2.0
    –batch_ac0d-3682-7af9
    Content-Type: application/http
    Content-Transfer-Encoding: binary
    GET UserStatuses HTTP/1.1
    Accept-Language: en
    Accept: application/json
    MaxDataServiceVersion: 2.0
    DataServiceVersion: 2.0

  3. fetch tasks which is visible for current log on user in the list:

(Request-Line) GET /sap/opu/odata/sap/CRM_TASK/Tasks?
KaTeX parse error: Expected 'EOF', got '&' at position 7: skip=0&̲top=20& o r d

e r b y = C r e a t e d A t orderby=CreatedAt%20asc& filter=MyTask%20eq%20true%20and%20Completed%20eq%20false&$inlinecount=allpages HTTP/1.1

要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":