
Dynamic model extensions with Mustache
We're making model extensions smarter. Now you can call user attributes with mustache to create more complex model layers for the most complex data modeling challenges.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Good morning. Um, let me find my screen. I think you guys want this one. Share that. Very nice. Okay. Um yeah, as you know, I've been working on dynamic shared extensions. They're actually getting pretty good traction. A lot of um you know, embed use cases and customizing per tenant and stuff like that's going on. So we had a request come in because this is just to show you this is like the existing way that um shared extensions get mapped for um you know the the the model name gets mapped to these user attribute values for this user attribute.
And I mean this is great. Gives you a lot of flexibility. Allows you to have multiple values mapped to the same uh or uh you know multiple user attribute values mapped to the same model. So you got tons of flexibility here. But it's um going to get pretty verbose and painful to to manage if you get into the thousands or tens of thousands of uh extension models getting mapped.
And so what I've done if I is I'm introduc it's not done. It's in in my local um but but but getting close. We're introducing a an an alternative way to define the uh user attribute to um to dynamic extension mapping which is just to provide a map pattern uh which you can see uses our mustache syntax and can reference any uh omni attribute.
So, this is like a a mustache template. Uh, I've got this saved. Uh, you can see I've got this uh extendo is just the kind of the prefix that I'm putting on my models. You could have the attribute value just be the full model name if you wanted or you can include some prefixing suffixing. Uh, and then I've also got these two models that I've created.
So, I've got extendo cool stuff where I've added cool first name as a label to user's first name. And I've got extendo wicked stuff where I've added wicked first name. Uh, currently my attribute value is set to cool stuff. If I come into a user attribute or into a sorry a workbook uh based on the the shared model super dynamico uh you can see that users has the label cool first name.
I'm going to jump over to my uh user attributes and switch this over to wicked stuff. And if everything works uh then I refresh this and we should have wicked first name. So you can see that the you only have to define the mapping one time and then just as you add new uh extension models and the corresponding user attributes.
They will just work. You don't have to update the shared model extension mapping stuff. Um hopefully coming next week, but I'm off a good chunk of next week. So, we'll see if I'm able to land it before I go.