We recently attempted this task for two of our customers and it was confirmed by Support that it is not possible. The crux of the disconnect is that uStore uses a dynamically named XML file (or a SQL table for an XM Campaign) and uPlan doesn't know how to query the correct data source.
Simon,
We recently attempted this task for two of our customers and it was confirmed by Support that it is not possible. The crux of the disconnect is that uStore uses a dynamically named XML file (or a SQL table for an XM Campaign) and uPlan doesn't know how to query the correct data source.
--
You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users...@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.



First uPlan can use xml in particular MS persistence format https://docs.microsoft.com/en-us/office/client-developer/access/desktop-database-reference/xml-persistence-format.Second uStore will send exact same format to production , so uProduce use exact same format.Third uStore saves uploaded files in a different XML format.And last , Plan file you can use XML for a UserView , just the way to do it via variable and variable XML will be of particular structure described in uPlan User Guide https://help.xmpie.com/uPlan/v.9.4/Help/en/index.htm#t=Work_with_Add_Plan_Objects%2FDefining_a_User_View_from_an_XML_String.htm&rhsearch=userview%20xml&rhhlterm=userview%20xml&rhsyns=%20I used this technique many times , for example using HTML Generic you can allow user to add records and pass xml via variable to the plan.Igor.

I suggest write a store procedure so your sql inPlan will be simple
Good luckSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO-- =============================================-- Author: <Ed Kotnik>
-- Create date: <2019/04/03>-- Description: <Uploaded list in uStore returns a table>-- =============================================CREATE PROCEDURE RecipientListToTable-- Add the parameters for the stored procedure here@inOrderProductID intASBEGIN-- SET NOCOUNT ON added to prevent extra result sets from-- interfering with SELECT statements.SET NOCOUNT ON;--First we build the filename for the XML file on the disk using the OrderProductID as inputDECLARE @FileOnDisk NVARCHAR(256) = (SELECT 'F:\XMPie\uStore\App\uStoreShared\' + RecipientList.SourceXML As FileOnDiskFROM OrderProduct INNER JOIN RecipientList ON OrderProduct.RecipientListID = RecipientList.RecipientListIDWHERE OrderProductID = @inOrderProductID)--The we read the file from the disk as XML and surface as a tableDECLARE @sql nvarchar(max)SELECT @sql='DECLARE @XML XML =
(SELECT CONVERT(xml, REPLACE(BulkColumn,''utf-16'',''utf-8''), 2)
FROM OPENROWSET(Bulk'''+@FileOnDisk+''', SINGLE_CLOB)[rowsetresults])SELECTTbl.Col.value(''Column1[1]'', ''nvarchar(30)'') as [Column1] --add more columns can be returned separated by commas
FROM @XML.nodes(''//RecipitentList'') Tbl(Col)
'exec(@sql)ENDGO
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie...@googlegroups.com.