Skip to main content
Question

PSO Generate Shifts via REST API


Forum|alt.badge.img+6

Hi, I am trying to generate the shifts using the PSO REST API. I am posting the same payload where the workbench does (i extracted it from Audits) but it doesnt seem to work, it gets submitted but doesnt create any shifts. 

 

posting to this endpoint - https://elex-pso-{{env}}.ifs.cloud/IFSSchedulingRESTfulGateway/api/v1/scheduling/data?dataType=MODELLING&waitForCompletion=true&childAccountId=cust

Anything that i am missing?

 

<DsModelling xmlns="http://360Scheduling.com/Schema/DsModelling.xsd">
  <RAM_Data_Update>
    <object_type_id>RAM_Rota</object_type_id>
    <object_pk_name1>id</object_pk_name1>
    <object_pk1>80de9cf5042945838531d1ff4811861e</object_pk1>
    <column_name>modified</column_name>
    <column_value>true</column_value>
    <delete_row>false</delete_row>
  </RAM_Data_Update>
  <RAM_Rota_Alteration>
    <ram_rota_id>80de9cf5042945838531d1ff4811861e</ram_rota_id>
    <id>158</id>
    <ram_resource_id>158</ram_resource_id>
    <start_datetime>2023-10-22T22:00:00+00:00</start_datetime>
    <end_datetime>2023-11-22T23:00:00+00:00</end_datetime>
  </RAM_Rota_Alteration>
  <RAM_Rota_Item>
    <ram_rota_id>80de9cf5042945838531d1ff4811861e</ram_rota_id>
    <id>9d12421249814e29edf4e469436e8265</id>
    <ram_resource_id>158</ram_resource_id>
    <start_datetime>2023-10-28T06:00:00+00:00</start_datetime>
    <end_datetime>2023-10-28T14:00:00+00:00</end_datetime>
    <ram_shift_category_id>STW</ram_shift_category_id>
    <overtime_period>PT10M</overtime_period>
    <ram_shift_template_id>40</ram_shift_template_id>
    <split_allowed>true</split_allowed>
    <description>Saturdays shift</description>
  </RAM_Rota_Item>
  <RAM_Rota_Membership_Period>
    <ram_rota_id>80de9cf5042945838531d1ff4811861e</ram_rota_id>
    <id>02ddd50c2ee74128e8b782486e7d5179</id>
    <ram_resource_id>158</ram_resource_id>
    <start_datetime>2023-10-17T18:30:00+00:00</start_datetime>
    <end_datetime>2023-12-30T18:30:00+00:00</end_datetime>
  </RAM_Rota_Membership_Period>
  <RAM_Update>
    <organisation_id>2</organisation_id>
    <dataset_id>DS_DEV</dataset_id>
    <id>179559</id>
    <user_id>POSTMAN</user_id>
    <ram_update_type_id>CHANGE</ram_update_type_id>
    <is_master_data>false</is_master_data>
    <requesting_app_type_id>PSW</requesting_app_type_id>
    <requesting_app_instance_id>10.0.0.5</requesting_app_instance_id>
  </RAM_Update>
</DsModelling>

 

4 replies

Forum|alt.badge.img+21
  • Superhero (Employee)
  • 374 replies
  • October 24, 2023

I’m not sure whether SHIFT_PLANNER is the correct data type. Have you tried that instead of MODELLING?


Forum|alt.badge.img+6
  • Author
  • Do Gooder (Customer)
  • 26 replies
  • October 24, 2023

@Sajith Anushan Tried with SHIFT_PLANNER, and also without passing data type. same issue.


Forum|alt.badge.img+8
  • Hero (Employee)
  • 58 replies
  • November 10, 2023

What are you expecting to see when you get this xml into the system?  Where are you looking for the update?


Forum|alt.badge.img+21
  • Superhero (Employee)
  • 374 replies
  • November 10, 2023

Hi Carl - Jevin had raised a SNOW ticket couple of days ago for this. I did some testing and sent the required alterations and steps to follow. Requirement was to create shifts in Resource Planner using API.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings