Creating list items using Flow


I'm trying to create a flow that will start on the modification of a list item.


The flow needs to create a list items in anoother list.


I've created a Http step to create the item using the REST API. (



so that should meant that I need to push the following into my step:


method: POST
body: { '__metadata': { 'type': 'SP.Data.TestListItem' }, 'Title': 'Test'}
    Authorization: "Bearer " + accessToken
     X-RequestDigest: form digest value
    accept: "application/json;odata=verbose"
    content-type: "application/json;odata=verbose"
    content-length:length of post body


So in the Uri section of the task I'm getting "Enter a valid uri" when I add the above Url.


In the Headers section I get: "Enter a valid json"


in the body I'm getting : "Enter a valid json"


So in short I'm not having much luck.


Also in the header section how do I get my accessToken using Flow?


Has anybody got this to work?


1 Reply
best response confirmed by Pieter Veenstra (MVP)
I've now found a valid way to remove the error message: It looks like Flow doesn't re-validate the Uri field on the form. Once you've got an invalid Uri entered all you can do is create a new Http step