#kiel_subscription-schedule-metadata-copy

1 messages ยท Page 1 of 1 (latest)

earnest burrowBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1394360199531335730

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

olive obsidian
#

I recommend testing this out in Test mode first to be certain everything works as you expect it.

lilac copper
#

Hi! Yes that's exactly what I'm trying to do. I thought the items would be copied as they are, metadata included.
I could update the subscription schedule to add the metadata afterwards, but reconciling the subscription's items with the phase.items might be a bit tricky: the phase.items don't have an id

#

I guess I could just delete the phase.items automatically created in the schedule and just convert manually the ones from the subscription object?

olive obsidian
#

I guess I could just delete the phase.items automatically created in the schedule and just convert manually the ones from the subscription object?

I would avoid that if you can. When you first create a Schedule directly from a Subscription, it will only have one phase that corresponds with the current state of the Subscription at the time you created the Schedule. I think making an update request based on the Price IDs/quantities in the phase.items and the subscription.items is likely your best bet.

lilac copper
#

Sounds good, I wanted to avoid doing that if I could but I'll try it that way. Thanks!
Out of curiosity, do you know why the metadata is not copied in that case? It looks to me like it would be a good exception to add (it would certainly help me ๐Ÿ˜„ )

olive obsidian
#

It's not something we generally do. I can request it but we try to keep the phases logically separate from the Subscription Items themselves.

earnest burrowBOT
lilac copper
#

Fair enough. If a request is not too much bother it would be appreciated, otherwise I'll manage without it ๐Ÿ™‚

olive obsidian
#

I'll request it but you should plan/assume that nothing will change and update your integration accordingly

#

If that feature does wind up getting implemented, you can simplify your approach later.

lilac copper
#

Thanks a lot!

olive obsidian
#

Feature requested. We're happy to help ๐Ÿ™‚

lilac copper
#

Is there a place where I could follow its progression? Or is it internal only?

olive obsidian
#

Sorry, internal only.

lilac copper
#

Cool! Thanks a lot for your help, I hope you have a great day ๐Ÿ™‚

olive obsidian
#

You too!