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 ?
yo anyone solved this?
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>
05-18-2022
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...
05-18-2022
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 ?
05-10-2022
oh i got it, just create a custome app and add api keys to the local files (lol this seems obvious now)
My Accepted Solutions
Subject | Views | Posted |
---|---|---|
1748 | 06-27-2022 03:25 AM | |
291 | 05-10-2022 11:46 PM | |
410 | 03-21-2022 01:03 AM |