The King has said he is “inspired” by the way the Church of Scotland and other faith communities have provided care to the poor and asylum seekers.

A letter from Charles was read out at the church’s general assembly gathering in Edinburgh, the first time this has happened since the death of Queen Elizabeth.

It came as the Rev Sally Foster-Fulton, head of the charity Christian Aid Scotland, was installed as the next moderator of the general assembly.

The King’s letter used the royal term “we” as it was read aloud during the opening ceremony in Edinburgh.

As is tradition, he pledged to “preserve and uphold the rights and privileges of the Church of Scotland”.

The letter said: “We deeply appreciated the many expressions of condolences we received on the death of Her Majesty Queen Elizabeth, our beloved mother, and for the warmth and dignity of the national service of thanksgiving for her life that was held at St Giles’ Cathedral.

Read More: How a Scottish island is helping global disaster response with a volcano simulation

“We are very conscious at this time of the pain for so many people across the world who are suffering from the vagaries of war and poverty.

“We are, as ever, inspired by the way in which the Church of Scotland, with other churches and faith communities, has expressed the Gospel imperative to the poor and made the care of refugees and asylum seekers such a priority.”

He praised the joint “peace pilgrimage” visit to South Sudan, which the Church of Scotland’s moderator made along with the Archbishop of Canterbury and Pope Francis.

The Herald: King Charles waves from the Buckingham Palace balcony after his coronation

The letter said: “Their messages of justice, peace and reconciliation were made all the more powerful by their visible presence which signified both the unity and diversity of the Churches.

“These messages are equally vital in Sudan where people are again threatened by conflict.

“We pray for a swift end to the current hostilities to ease the human suffering and bring peace.”

The King said he was “greatly encouraged” by the church’s inter-faith dialogue and a declaration of friendship with Catholic bishops in Scotland.

Read More: Family-owned Scottish honey company toasts luxury floating hotel deal

The letter said: “We are aware of the challenges which the Church is facing as it continues the process of reform, as well as its discernment of God’s will for the future shape of ministry and mission across Scotland.

“Our prayers remain with you, and may the Holy Spirit continue to guide the Church with wisdom, grace and hope in all its decision-making.”

The moderator’s role will see her chair proceedings at the Assembly Hall on the Mound over five days from Saturday, and thereafter act as an ambassador for the church, speaking on its behalf at engagements at home and abroad for the next 12 months.

Those at the assembly, either in the hall or joining online, will hear details of a report setting out the challenging financial situation facing the church, as well as take part in topical debates and vote on issues brought forward by forums and committees.

Sensitive subjects due to be debated include proposed legislation allowing assisted suicide, and the decision taken more than 10 years ago to remain neutral in the debate on Scottish independence.