Skip to main content

Create Activity from Service call

Comments

6 comments

  • Geoff Booth
    1. Add a button on the service call to run a UF. The UF would then:
    2. Save any information you want to copy to the activity in @STORE values
    3. Click the SAP Activity button to create the new activity
    4. Activate() -- to make sure the activity window is the active one
    5. Set the field values in the activity using the @STORE values 
    6. Manually make any other changes and click the add button
  • Christina Du

    Thanks Geoff,

    I have tried the button to create new activity. The problem is the created acitivity wouldn't show in Service Call - Acitivities tab.

  • Geoff Booth

    Very strange - it works for me just fine.

  • Christina Du

    Can you please take a screenshot of the step 4?  I just realised there is difference between yours and mine.

    I created the activity in the function button - universal function, not using SAP activity button.

    When you click SAP Activity button, it is already activated.  May I know where to trigger Activate()?  Thanks.

     

  • Geoff Booth

    @STORE1 = $[$14.0.0]; // Assign  @STORE1 value
    Click($[$55.0.0]); // Click the New Activity button
    Activate(); // Ensure the Activity form is the active one
    Set($[$53.0.0]]|@STORE1); // Set the value on the activity

  • Christina Du

    Thanks Geoff,

    This works!

    It is a perfect solution.  Thanks again.

     

Please sign in to leave a comment.