Hey Eric,
Thank you for the response! I'm actually targeting the StructuredParameterConfiguration.Parameters.Value member. While I can't set the value, I can manipulate the collection by clearing it and re-adding the values I need, and then committing the changes. So, this will work, but if anyone has a more eloquent way I'm definitely all ears.
Thank you again,
Joe
------------------------------
Joseph Parker
Midway USA
------------------------------
Original Message:
Sent: 05-13-2021 08:37
From: Eric Berkshire
Subject: Structured Parameters
You should be able to do something like this:
var Configman = ConfigurationManager.GetInstance(session);
var ConfigurationList = new StructuredParameterConfigurationList(Configman);
var Query = new QuerySettings<StructuredParameterConfiguration, StructuredParameterConfiguration.Property>();
Query.SetPropertiesToRetrieveToAll();
ConfigurationList.StartWatching(query);
var SPList = configurationList.GetConfigurationList();
var StructureParameter = SPList.FirstOrDefault(sp => sp.ConfigurationId.DisplayName == "Test stuff");
StructureParameter.PrepareForEdit();
StandardProperties< StructuredParameterConfiguration, StructuredParameterConfiguration.Property> SP = StructureParameter.StandardProperties;
SP.Notes.Value = "I'm a note";
StructureParameter.Commit();
------------------------------
Eric Berkshire
Original Message:
Sent: 05-11-2021 11:48
From: Joseph Parker
Subject: Structured Parameters
Good morning. I'm pretty new to the sdk, but have a task which requires I set the value for a given structured parameter through a job. I've thus far been able to successfully query for and load the parameter in question. I see the configuration object that contains it has a 'PreparForEdit' method exposed, but the StandardProperties.Value property is ReadOnly. I've not yet been able to find in the documentation how to set these, and was wondering if anyone had any experience in this regard. I'm using ICELib in this task.
My question is, is it possible to set values on a StructuredParameter, or should I look for another solution the the problem I'm trying to solve?
Thank you in advance.
#Integrations
------------------------------
Joseph Parker
Midway USA
------------------------------