8 thoughts on “Dynamically display department information for a user in a list

  1. Hello Stefan,

    We try to activate the feature but we get an error. In the log we find “Field with name “Authors Department” was not found”

    Please advise.

    Kind regards,
    Mario

    1. Hi Mario,

      sorry had a little problem in the solution and fixed it. Can you please download it again. You should also make sure that the “Author with Department” List exists

      Kind regards
      Stefan

      1. Hello Stefan,

        That worked thanks.
        Question:
        How can we make this column available for other lists?
        Could we make it a site column?

        And if above is not possible: we would like to add it to a list on a subweb: Can you tell me how?

        Kind regards,
        Mario

        1. The code already creates a site column but it is in the _hidden group. You will find this field in the root of your site collection when you append “_layouts/fldedit.aspx?field=Authors_x0020_Department”.
          There you can also change the group.

          If you really like to use it in a productive environment I recommend you to let have a developer a look over my code. He/She will also be able to create the fields with the correct names. It can also extended to other fields too.

          /greetings
          Stefan

          1. Hello Stefan,

            Thanks.
            How we did it now:
            We used Powershell to add it to a Content Type.
            When we add the Content Type to a list we get the Column available.

            Good enough for now and we will let a developer look into this.

            Thanks again.

            Kind regards,
            Mario

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.