Creating EDT using EDT 2.5 Create?

I wish to use the webservice APIs to create an EDT, but I am sure what kind of value is expected for the psXMLMetadata parameter.

While I am familiar with the XML structure for this parameter, I am not sure what are the ishfields that are required for an EDT.

Could someone please provide some kind of sample?

For example, I wish to add a new image extension "vsdx". (Just one example, out of many other image extensions we may need to add)

Thank you!

Kelvin

emoji
Parents
  • Hi Kelvin,

    Can I assume that adding Electronic Document Types (EDTs) is a system setup thing that does not happen that often? Or is there some more automation required for adding it in your API toolbox?

    May I point you to ISHRemote's Add-IShEdt cmdlet. So on https://github.com/RWS/ISHRemote/blob/master/Source/ISHRemote/Trisoft.ISHRemote/Cmdlets/EDT/AddIshEDT.cs you'll find the help illustrating those field names you are looking for (line 35-37) and lower in the file the API call that uses them (line 136).

    And as EDT is just another card type with fields, you can use ISHRemote's Get-IShTypeFieldDefinition to find out:

    • What are mandatory fields (column MM, where first M points to Mandatory or not; and second M to multi-value or not)
    • What are fields required on Create (column CRUST, where C means Create)

    > Get-IshTypeFieldDefinition | Out-GridView

    Screenshot of a PowerShell grid output showing ISHType field definitions with columns for Level, Name, DataType, DataSource, SOB, MM, CRUST, and Description, filtered by ISHEDT.

    This should get you going,

    Best wishes,
    Dave

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 8:23 AM (GMT 1) on 5 Aug 2024]
Reply
  • Hi Kelvin,

    Can I assume that adding Electronic Document Types (EDTs) is a system setup thing that does not happen that often? Or is there some more automation required for adding it in your API toolbox?

    May I point you to ISHRemote's Add-IShEdt cmdlet. So on https://github.com/RWS/ISHRemote/blob/master/Source/ISHRemote/Trisoft.ISHRemote/Cmdlets/EDT/AddIshEDT.cs you'll find the help illustrating those field names you are looking for (line 35-37) and lower in the file the API call that uses them (line 136).

    And as EDT is just another card type with fields, you can use ISHRemote's Get-IShTypeFieldDefinition to find out:

    • What are mandatory fields (column MM, where first M points to Mandatory or not; and second M to multi-value or not)
    • What are fields required on Create (column CRUST, where C means Create)

    > Get-IshTypeFieldDefinition | Out-GridView

    Screenshot of a PowerShell grid output showing ISHType field definitions with columns for Level, Name, DataType, DataSource, SOB, MM, CRUST, and Description, filtered by ISHEDT.

    This should get you going,

    Best wishes,
    Dave

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 8:23 AM (GMT 1) on 5 Aug 2024]
Children