Contentful logo

Contentful Community

Associating ContentType with Asset through Dotnet SDK

I am using Contentful SDK for DotNet. My scenario is like this.

  1. I will be uploading a JPEG image.
  2. It will be part of a ContentType having following fields (Name, Id, Size and ImageLink). I will be providing Id and Size as specific entries.
  3. I will be searching by these ContentType and Name to get this image.

I need to how I can achieve this.
A demo on this scenario will be highly helpful as I have limited time finish this job.

Hi @pojha,

Have you already been able to create the referencing field itself in the content type that you’re creating?

That will be the main route in doing what you desire.

After doing that, it should be pretty straightforward to search through the entries that are created based on that asset that was referenced.