rohit_martires
Shopify Partner
Contact Me
Status
Offline
Last Activity
‎09-13-2022 01:59 AM
Topic Started
7
Topics Started
Topic Solutions
3
Solutions
Post Count
49
Posts
Post Kudos
7
Likes

Community Badges

No content to show

User Activity

if you still have this issue i posted my fix here: https://community.shopify.com/c/shopify-apis-and-sdks/admin-api-metafields-error-value-must-be-a-single-line-text/td-p/1636693 
let metafield_value = draft_order.line_items.map((x) => String(x.id)); metafield_value = JSON.stringify(metafield_value);this works
i tried both getting the same error on both rest/graphqlvalue_type is for the old api version i'm currently using the april_22 version.
Hey so i'm trying to set metafields on a order, i have tried both the admin rest and graphql api both give the same error saying: error: value must be a single line text string.problem is the value i'm passing is a JSON strigyfied array i.e. let meta...
no i dont have any custom metafields set for the store, btw did JSON.stringify() work for you ?
hey i tried this by converting my array to json via JSON.stringfy(arr) but i'm getting this error "value": [┃ "must be a single line text string."┃ ]  metafields = await client.post({ path: 'metafields', data: { metafield: { ord...
curious why you want to use dropbox to host and not shopify ?
facing same issue, im getting cors errors 
or you could use a script tag and save var globally <script type="text/javascript"> window.shop = "{{ shop.domain }}"; window.product = {{ product | json }}; </script>
Hey,so when i GET the fulfillment services on my app with the below code i get   await client.get({ path: 'fulfillment_services', query: { scope: 'all' } });this response: { id: 61536665845, name: 'ABC', email: null, service_name: 'ABC', handle: 'abc...
hey thanks but apprently the issue was that i was not creating fulfillments for the fulfillmentOrdersi thought fulfillmentOrder resource was supposed to replace the fulfillment resourse but apprently you have to create fulfillments for the fulfillmet...
Hey,so when i GET the fulfillment services on my app with the below code i get   await client.get({ path: 'fulfillment_services', query: { scope: 'all' } });  this response: {id: 61536665845,name: 'ABC',email: ...
hey so while using normal fulfillment resource there was a api to mark the fulfillment as complete and provide tracking info but in the new fulfillment resource i cant find this ?
oh i got it, just create a custome app and add api keys to the local files (lol this seems obvious now)
This widget could not be displayed.
This widget could not be displayed.