2

The API documentation for GET /asset/v1/content/assets/{id}/channelviews/{viewname} says

viewName    string  Required    The name of the asset view to retrieve

But doesn't list the valid values, or where to find them.

I've found a viewName of html works; are there any others?

1
  • Not used this, but I reckon "viewaswebpage" or a variant of it might work – Samuel Dare Feb 27 '18 at 9:15
4

The views are listed here inside the documentation. As usual for SFMC documentation, it is buried in a place you would least expect it.

"views": {
    "html": {},
    "text": {},
    "subjectline": {},
    "preheader": {},
    "viewAsAWebPage": {),
    "subscriptioncenter": {},
    "forwardHTML": {},
    "forwardText": {}   
  }
2
  • 1
    Index it before it moves!!! – Samuel Dare Feb 27 '18 at 14:06
  • 1
    "As usual for SFMC documentation, it is buried in a place you would least expect it." Never was a truer word spoken! Thanks – PeterB Feb 27 '18 at 14:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.