<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: POST /ProblemReports folder location in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/POST-ProblemReports-folder-location/m-p/1006667#M9681</link>
    <description>&lt;P&gt;refere to&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/CS429060" target="_blank"&gt;https://www.ptc.com/en/support/article/CS429060&lt;/A&gt;&amp;nbsp;, there is a step to adjust the OIR too :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Sample Request Body:&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE class="ckeditor_codeblock hljs json"&gt;{
  "&lt;SPAN class="hljs-attribute"&gt;Requester&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"u1"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;Category&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;{
    "&lt;SPAN class="hljs-attribute"&gt;Value&lt;/SPAN&gt;": &lt;SPAN class="hljs-string"&gt;"COST_REDUCTION"&lt;/SPAN&gt;
  }&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;IssuePriority&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;{
    "&lt;SPAN class="hljs-attribute"&gt;Value&lt;/SPAN&gt;": &lt;SPAN class="hljs-string"&gt;"LOW"&lt;/SPAN&gt;
  }&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;NeedDate&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"2024-10-07T04:59:28.818Z"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;Number&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"PR002"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;Description&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"desc test"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;Name&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"PR002"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;DescriptionSummary&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"summary test"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;@odata.type&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;""&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;Context@odata.bind&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"Containers('OR:wt.pdmlink.PDMLinkProduct:115304')"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  &lt;SPAN&gt;"&lt;SPAN class="hljs-attribute"&gt;Folder@odata.bind&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"Folders('OR:wt.folder.SubFolder:665511')"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;Attachments@odata.bind&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;[
    &lt;SPAN class="hljs-string"&gt;""&lt;/SPAN&gt;
  ]
&lt;/SPAN&gt;}&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Comment out the following line from the Problem Report OIR when specifying the folder where the Problem Report is to be created.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;&amp;lt;AttrConstraint id="folder.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints"&amp;gt;
&amp;lt;Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/&amp;gt;
&amp;lt;!--  &amp;lt;Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/&amp;gt; --&amp;gt;
&amp;lt;/AttrConstraint&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 26 Mar 2025 08:44:27 GMT</pubDate>
    <dc:creator>Fadel</dc:creator>
    <dc:date>2025-03-26T08:44:27Z</dc:date>
    <item>
      <title>POST /ProblemReports folder location</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/POST-ProblemReports-folder-location/m-p/1004104#M9598</link>
      <description>&lt;P&gt;Version: Windchill 13.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use Case: Creating a problem with REST API but can't adjust the folder location in the API body.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Description: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Not sure how to use the syntax perhaps but I tried everything that comes to mind and I'm not getting the expected result.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here:&lt;/P&gt;
&lt;P&gt;&lt;A href="mailto:Context@odata.bind" target="_blank"&gt;Context@odata.bind&lt;/A&gt;&amp;nbsp;is the Context (wt.pdmlink.PDMLinkProduct:xxx)&lt;/P&gt;
&lt;P&gt;&lt;A href="mailto:Folder@odata.bind" target="_blank"&gt;Folder@odata.bind&lt;/A&gt;&amp;nbsp;is ... what? I tried putting in versions of "Folders('OR:wt.folder.SubFolder:xxx')"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "Name": "",
  "IssuePriority": {
    "Value": ""
  },
  "Requester": "",
  "State": {
    "Value": ""
  },
  "TypeIcon": {
    "Path": ""
  },
  "NeedDate": "2025-03-12T17:51:19.836Z",
  "@odata.type": "",
  "Context@odata.bind": "",
  "Folder@odata.bind": "",
  "Attachments@odata.bind": [
    ""
  ],
  "CIAffectLinks@odata.bind": [
    ""
  ],
  "AffectedObjects@odata.bind": [
    ""
  ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;There are also:&lt;/P&gt;
&lt;P&gt;"FolderLocation" and "FolderName"... both seem to do nothing to set the location.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I want the created problem report to go to a specific folder, what is the correct syntax in the body of the API?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 17:58:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/POST-ProblemReports-folder-location/m-p/1004104#M9598</guid>
      <dc:creator>Dobi</dc:creator>
      <dc:date>2025-03-12T17:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: POST /ProblemReports folder location</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/POST-ProblemReports-folder-location/m-p/1006667#M9681</link>
      <description>&lt;P&gt;refere to&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/CS429060" target="_blank"&gt;https://www.ptc.com/en/support/article/CS429060&lt;/A&gt;&amp;nbsp;, there is a step to adjust the OIR too :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Sample Request Body:&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE class="ckeditor_codeblock hljs json"&gt;{
  "&lt;SPAN class="hljs-attribute"&gt;Requester&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"u1"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;Category&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;{
    "&lt;SPAN class="hljs-attribute"&gt;Value&lt;/SPAN&gt;": &lt;SPAN class="hljs-string"&gt;"COST_REDUCTION"&lt;/SPAN&gt;
  }&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;IssuePriority&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;{
    "&lt;SPAN class="hljs-attribute"&gt;Value&lt;/SPAN&gt;": &lt;SPAN class="hljs-string"&gt;"LOW"&lt;/SPAN&gt;
  }&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;NeedDate&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"2024-10-07T04:59:28.818Z"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;Number&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"PR002"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;Description&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"desc test"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;Name&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"PR002"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;DescriptionSummary&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"summary test"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;@odata.type&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;""&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;Context@odata.bind&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"Containers('OR:wt.pdmlink.PDMLinkProduct:115304')"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  &lt;SPAN&gt;"&lt;SPAN class="hljs-attribute"&gt;Folder@odata.bind&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"Folders('OR:wt.folder.SubFolder:665511')"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class="hljs-attribute"&gt;Attachments@odata.bind&lt;/SPAN&gt;": &lt;SPAN class="hljs-value"&gt;[
    &lt;SPAN class="hljs-string"&gt;""&lt;/SPAN&gt;
  ]
&lt;/SPAN&gt;}&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Comment out the following line from the Problem Report OIR when specifying the folder where the Problem Report is to be created.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;&amp;lt;AttrConstraint id="folder.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints"&amp;gt;
&amp;lt;Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/&amp;gt;
&amp;lt;!--  &amp;lt;Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/&amp;gt; --&amp;gt;
&amp;lt;/AttrConstraint&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 26 Mar 2025 08:44:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/POST-ProblemReports-folder-location/m-p/1006667#M9681</guid>
      <dc:creator>Fadel</dc:creator>
      <dc:date>2025-03-26T08:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: POST /ProblemReports folder location</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/POST-ProblemReports-folder-location/m-p/1006761#M9683</link>
      <description>&lt;P&gt;I did ultimately have a tech support call and the thing that was missing from that support article was the OIR comment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case, I didn't have the folder.id explicitly called out so there was no mechanism to set the folder with APIs. Once I added in the constraint (as you note above, commenting out the immutable portion), it worked as the support article suggests.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 13:25:48 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/POST-ProblemReports-folder-location/m-p/1006761#M9683</guid>
      <dc:creator>Dobi</dc:creator>
      <dc:date>2025-03-26T13:25:48Z</dc:date>
    </item>
  </channel>
</rss>

