cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
UBJAN
Frequent Visitor

List all shifts start/end times does not work

Hello!

 

I have build a flow where I have to get assigned task for the person on current day shift. I have succeeded to assign task to all planned shifts but when I enter start/end times in "List all Shifts" it does not return any output and therefore no tasks are created and assigned.

 

This is when it returns:

outputsy.jpg

 

And when I put times there is no output:

outputsn2.jpg

 

Can anyone help?

 

Thank you!

 

UBJAN

2 ACCEPTED SOLUTIONS

Accepted Solutions
DamoBird365
Community Champion
Community Champion

@UBJAN i've reported it as a bug.  By comparison, the list all open shifts function works with dates in the from and to times.

View solution in original post

Dear @DamoBird365 

 

It turns out there was some kind of bug with my group. I created new group and now everything works as it should.

finalt.jpg

 

But it is interesting that you could replicate the issue. Maybe there was some update in between. Anyways, I will mark it as complete, thank you very much!

 

UBJAN

View solution in original post

8 REPLIES 8
DamoBird365
Community Champion
Community Champion

Hi @UBJAN 

 

Sorry if this is an obvious answer, but have you got any shifts between 24th Feb at 20:04 and 25th Feb at 20:04?

 

Have you tried specifying 00:00:01 as the start time and 23:59:59 as the finish or trying expanding the periond for the whole week 22nd - 26th?

 

Damien

 

 

Hi@DamoBird365 

Thank you for suggestion, but unfortunately it does not change a thing. I your times and also only start time, but it returns values only if I put no time at all.

 

UBJAN

DamoBird365
Community Champion
Community Champion

Morning @UBJAN 

 

In the flow where you have no values at all in the start/end, please look at the history of the run and copy an example here from the outputs.

 

Thanks,

 

Damien

UBJAN
Frequent Visitor

Morning @DamoBird365 

 

Below is the action and part of the output (full output very long) when no dates are specified:

out1.jpg

 

 {
    "@odata.etag": "\"a60xxx26-0000-xxxx-0000-60xxxxx50000\"",
    "id": "SHFT_08489be6-xxxx-441d-b4f4-388xxxx6c44d",
    "lastModifiedDateTime": "2021-02-27T13:20:05.859Z",
    "schedulingGroupId": "TAG_dae5a6e4-b272-4e94-xxxx-41fcxxxx576e",
    "userId": "e16xxxx69-xxxx-46d0-xxxx-b60e8f9128ef",
    "lastModifiedBy": {
      "application": null,
      "device": null,
      "conversation": null,
      "user": {
        "id": "e16xxx69-707e-46d0-xxxx-b60e8fxxxxef",
        "displayName": "xxxxx"
      }
    },
    "sharedShift": {
      "displayName": "Day",
      "startDateTime": "2021-02-22T03:00:00Z",
      "endDateTime": "2021-02-22T20:30:00Z",
      "theme": "blue",
      "activities": [
        {
          "isPaid": true,
          "startDateTime": "2021-02-22T03:00:00Z",
          "endDateTime": "2021-02-22T20:30:00Z",
          "code": "DL",
          "displayName": "Daily log",
          "theme": "blue"
        }
      ]
    },
    "draftShift": {
      "displayName": "Day",
      "startDateTime": "2021-02-22T03:00:00Z",
      "endDateTime": "2021-02-22T20:30:00Z",
      "theme": "blue",
      "activities": []
    }
  },
  {
    "@odata.etag": "\"a8028b65-0000-0d00-xxxx-60xx665xxxx00\"",
    "id": "SHFT_a20df0c7-c1cc-xxxx-a1b7-8518d49d2ee4",
    "lastModifiedDateTime": "2021-02-27T15:33:37.429Z",
    "schedulingGroupId": "TAG_daxxa6e4-xxxx-4e94-ssdf-xxxxx",
    "userId": "e1685369-707e-46d0-a075-xxxxx",
    "lastModifiedBy": {
      "application": null,
      "device": null,
      "conversation": null,
      "user": {
        "id": "e1685369-707e-asdf-a075-xxxxx",
        "displayName": "xxxxxxx"
      }
    },
   

 

 

Thanks,

UBJAN

DamoBird365
Community Champion
Community Champion

Hi @UBJAN,

 

I'm with you on this.  I've setup a test shift and get results with no filter but get nothing as soon as I provide a date even if I make the start date 2020-01-01T00:00:00.  I will have a play with it later in the day unless anyone else has had experience.

 

Damien

DamoBird365
Community Champion
Community Champion

@UBJAN i've reported it as a bug.  By comparison, the list all open shifts function works with dates in the from and to times.

View solution in original post

Dear @DamoBird365 

 

It turns out there was some kind of bug with my group. I created new group and now everything works as it should.

finalt.jpg

 

But it is interesting that you could replicate the issue. Maybe there was some update in between. Anyways, I will mark it as complete, thank you very much!

 

UBJAN

View solution in original post

DamoBird365
Community Champion
Community Champion

@UBJAN 

 

Glad you are sorted.  I have just jumped back on to my flow and it still isn't working so I will leave the bug open for now.  I can try it again another day. 

 

Thanks

Damien

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (60,886)