Allow "xxx_id" for all referenced records

Idea created by Yum Darling Administrator on May 16, 2017
    New Idea
    Score5
    • Rachel Garrison

    In the Sites API documentation, it is clear that you can specify the manager via their id:

     

    <location> (text),

    <description> (text),

    <time_zone> (name, e.g. “Hawaii”),

    <business_record_id> (ID of Business Hour),

    <language> (two-letter code, e.g. “en”, “fr”),

    <manager_id> (user only, not group),

    <manager><email>,

    <default_assignee_id> (user or group)

     

    This is very convenient because, once we know a user ID, we can easily apply this to multiple updates using this syntax:

    <manager_id>123456</manager_id>

     

    But in other entities, notably incidents, this ..._id shortcut is not available. Instead, we need to specify a lookup, like this:

    <requester><email>demo@samanage.com</requester></assignee>

     

    There's a secondary question here, about why not all lookups are available in that structure (we can't say "<assignee><name>...", for example) but my primary question here, is why we cannot use the same structure as that in Sites?:

    <requester_id>123456</requester_id>

     

    This would make the update code much more consistent.

     

    Scott Leckie

    What problem will this feature solve?: